package edu.whu.dao;

import edu.whu.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User,String> {

    @Query("select u from t_user u where u.username=:username")
    User selectByUsername(String username);
}
